﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using engine;
using Microsoft.Xna.Framework;

namespace game
{
    public class GameScreen : Screen
    {
        private Scene scene = null;

        public override void Initialize(float aspectRatio)
        {
            scene = new Scene();
            scene.Initialize(
                new FreeCamera(new Vector3(0.0f, 50.0f, 5000.0f), Vector3.Zero, Vector3.Up,
                45.0f, 1.0f, 100000.0f, aspectRatio),
                aspectRatio);
        }

        public override void LoadContent(IServiceProvider serviceProvider)
        {
            base.LoadContent(serviceProvider);
            scene.LoadContent(content);
            scene.AddNode(new PlayerShipNode("Models\\p1_wedge"));
        }

        public override void Update(GameTime gameTime)
        {
            scene.Update(gameTime);
        }

        public override void Draw(GameTime gameTime)
        {
            scene.Draw(gameTime);
        }
    }
}
